const path = require('path')

function resolve(dir) {
  return path.join(__dirname, dir)
}

module.exports = {
  publicPath: '/',
  outputDir: 'dist',
  assetsDir: 'static',
  indexPath: 'index.html',
  filenameHashing: true,
  //   pages: {
  //     index: {
  //       entry: 'src/index/main.js',
  //       template: 'public/index.html',
  //       filename: 'index.html'
  //     }
  //   }
  lintOnSave: true,
  runtimeCompiler: false,
  productionSourceMap: false,
  configureWebpack: {
    name: '看到请回复',
    resolve: {
      alias: {
        '@': resolve('src'),
        Ajax: resolve('src/apis/index.js')
      }
    }
  },
  devServer: {
    port: process.env.VUE_APP_PORT,
    proxy: process.env.VUE_APP_SERVICE_URL,
    disableHostCheck: true
  }
}
